package com.qf.week2.day1;

public class Hero {
    private String name;
    private int strong;
    private int wisdom;
    private int speed;
    private double attack;
    public double attack(int strong){
        this.attack = this.strong * 0.2;
        return attack;
    }


    public Hero(String name, int strong, int wisdom, int speed,double attack) {
        this.name = name;
        this.strong = strong;
        this.wisdom = wisdom;
        this.speed = speed;
        this.attack = attack;
    }

    public Hero() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStrong() {
        return strong;
    }

    public void setStrong(int strong) {
        this.strong = strong;
    }

    public double getAttack() {
        return attack;
    }

    public void setAttack(double attack) {
        this.attack = attack;
    }

    public int getWisdom() {
        return wisdom;
    }

    public void setWisdom(int wisdom) {
        this.wisdom = wisdom;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    @Override
    public String toString() {
        return "Hero{" +
                "name='" + name + '\'' +
                ", strong=" + strong +
                ", wisdom=" + wisdom +
                ", speed=" + speed +
                ", attack=" + attack +
                '}';
    }
}
